<?php

namespace app\common\model;

use think\Model;

class Share extends Model
{
    protected $table = 'share';
    
    
    /**
     * 通过phone获取用户数据
     * @param $phone
     * @return array|null|\PDOStatement|string|\think\Model
     * @throws \think\Exception\DbException
     */
    public static function getAdvertisementInfo()
    {
        return self::where('type', '=', 1)->find()->toArray();
    }
}